.tree-box {
  padding: 24px 8px 24px 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;

  &.tree-box-select {
    padding: 8px 8px 8px 0;
  }
  &.tree-box-form {
    padding: 0 8px 0 0;
  }

  .el-tree-node__content {
    height: 32px;
  }

  .el-tree-node:focus>.el-tree-node__content {
    // color: $--color-primary;
    // background-color: transparent !important;
  }
  .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
    color: $--color-primary;
    background-color: transparent !important;
  }

  .el-tree-node__expand-icon.is-leaf {
    font-size: 0;
  }
  //树图里的图标
  .el-icon {
    margin-right: 8px;
    font-size: 18px;
  }

  .el-icon-document {
    position: relative;
    left: 0;
    margin-right: 0;
  }

  //树图的虚线涉及样式
  .el-tree-node {
    position: relative;
    padding-left: 16px;
  }

  .el-tree-node__children {
    padding-left: 16px;
  }

  .el-tree-node:last-child:before {
    height: 38px;
  }

  .el-tree>.el-tree-node:before {
    border-left: none;
  }

  .el-tree>.el-tree-node:after {
    border-top: none;
  }

  .el-tree-node:before,
  .el-tree-node:after {
    content: "";
    left: -3px;
    position: absolute;
    right: auto;
    border-width: 1px;
  }

  .tree :first-child .el-tree-node:before {
    border-left: none;
  }

  .el-tree-node:before {
    border-left: 1px solid $--border-color-base;
    bottom: 0px;
    height: 100%;
    top: -20px;
    width: 1px;
  }

  .el-tree-node:after {
    border-top: 1px solid $--border-color-base;
    height: 20px;
    top: 17px;
    width: 24px;
  }

  // 文件夹图标开关状态
  .is-expanded > .el-tree-node__content {
    .el-icon-folder:before {
      content: "\e784";
    }
  }
}

.tree-select {
  .el-select-dropdown__item {
    padding: 0;
    background-color: #fff;

    &.selected {
      font-weight: 400;
    }
  }
}

.user-dialog {
  width: 100%;

  .el-dialog {
    width: 50%;
  }

  .el-form {

    .dialog-textarea {
      textarea {
        height: 220px;
      }
    }
  }
}

.contextmenu {
  .el-menu {
    z-index: 9;
    padding: 10px 0;
    border: 1px solid $--border-color-base;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    background-color: #fff;
  }
  .el-menu-item {
    padding: 0 20px;
    height: 36px;
    line-height: 36px;
    color: #36474f;

    &:hover {
      background-color: #f5f5f5;
    }
  }
}
